]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Don't try to align something sliding to the right
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 18 Sep 2013 23:48:51 +0000 (19:48 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 12 Oct 2013 18:38:13 +0000 (14:38 -0400)
0 is already the correct value.

https://bugzilla.gnome.org/show_bug.cgi?id=694881

js/ui/overviewControls.js

index a415cc1b0e0c2cb0cb7a4fa0f771951ae54973b9..556ce3646af904df534499999351d73b31d3c3f8 100644 (file)
@@ -63,7 +63,7 @@ const SlideLayout = new Lang.Class({
         // flags only determine what to do if the allocated box is bigger
         // than the actor's box.
         let realDirection = getRtlSlideDirection(this._direction, child);
-        let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : (natWidth - availWidth);
+        let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0;
 
         let actorBox = new Clutter.ActorBox();
         actorBox.x1 = alignX;